function restoreAnimalScreen(){
	loadSpecie("#insert_specie_animal");
	$("#insert_specie_animal").bind("change", function(){
		loadRace("#insert_race_animal");
	});
	
	$("#radio-gender").buttonset();
	$("#radio-animal-size").buttonset();
	$( "#date-news" ).datepicker({
		showOn: "button",
		buttonImage: "images/layout/calendar.png",
		buttonImageOnly: true,
		changeMonth: true,
		changeYear: true
	});
	
	$("#save").button();
	$("#save").bind("click", function(){
		var animal = ofactory.create.animal(null,
				                            $("#name_animal").val(),
				                            $("#color_animal").val(),
				                            $("#insert_age_animal").val(),
				                            $("#description_animal").val(),
				                            $("#insert_temperament").val(),
				                            $("#radio-animal-size :input:checked").val(),
				                            $("#radio-gender :input:checked").val(),
				                            $("#insert_status_animal option:selected").val(),
				                            ofactory.create.race($("#insert_race_animal option:selected").val(),
				                            					 $("#insert_race_animal option:selected").text()));
		
		$.ajax({
            type: 'POST',
            url: "/dotcao/ws/animals/save",
            data: $.toJSON(animal),
            contentType: 'application/json',
            dataType: 'json',
            async: true,
            success: function (data) {
				$("<div />").html(data.content).appendTo("#pagina .form-content").dialog({
					title: "Cadastro de Animais",
					show: "fade",
					hide: "fade",
					width: 300,
					height: 150,
					modal: true,
					buttons: {
						OK: function(){
							if(data.type == "SUCESSO"){
								$("#wall-my-animals-command").trigger("click");
							}
							
							$(this).dialog("close");
							$(this).dialog("destroy");
						}
					}
				});

            }
        });
	});
	
	$("#cancel").button();
};